const fs = require('fs')

fs.readFile('./file/cj.txt', 'UTF-8', function (err, data) {
    if (err) {
        console.log(err.message)
    }

    var ary = data.split(' ')
    console.log(ary);

    const ary2 = [];
    ary.forEach(item => {
        ary2.push(item.replace('=', ':'))

    })
    console.log(ary2)

    const ip = ary2.join('\n')

    fs.writeFile('./file/cj.txt',ip, function (err) {
        if (err) {
            console.log(err.message);
        }
        console.log('ok');
    })

})